<link href="../addons/jy_area_dai/custom/templates/mobile/style.css?v=201705251730" rel="stylesheet">

<style>
    .fui-list{
        background: #fff;
    }
    .fui-list:first-child{
        margin-top: 0rem;
    }
    .fui-list.particulars{
        height: 3rem;
        padding:.4rem 0;
    }
    .fui-list.particulars div{
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
        text-align: center;
        font-size: .55rem;
        border-right: 1px solid #ededed;
        color: #000;
    }
    .fui-list.particulars div:last-child{border: 0}
</style>
<div class="fui-page fui-page-current page-commission-log">
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="goback();"></a>
        </div>
        <div class="title">{{pagedata.setting.tcommission_detail}}({{pagedata.balance_total}})</div>
    </div>
    <div class="fui-content">
	 <div class="fui-tab fui-tab-warning" id="tab">
				<a href="javascript:;" ng-class="{'active':pagedata.params.status==0}" ng-click="pagedata.params.status=0;tool.get_list('jy_area_dai/balance_shenhe/list/',true)">待审核</a>
				<a href="javascript:;" ng-class="{'active':pagedata.params.status==1}" ng-click="pagedata.params.status=1;tool.get_list('jy_area_dai/balance_shenhe/list/',true)">待打款</a>
				<a href="javascript:;" ng-class="{'active':pagedata.params.status==3}" ng-click="pagedata.params.status=3;tool.get_list('jy_area_dai/balance_shenhe/list/',true)">已打款</a>
				<a href="javascript:;" ng-class="{'active':pagedata.params.status==2}" ng-click="pagedata.params.status=2;tool.get_list('jy_area_dai/balance_shenhe/list/',true)">无效</a>
	 </div>
        <div ng-if="pagedata.list.length>0" class="fui-list-group" style="padding:0.4rem 0">
		<div ng-repeat="item in pagedata.list track by item.id" class="fui-list" style="height: 3.5rem">	
			<div class="fui-list-inner">
				<div class="row">
				      <div class="row-text" >
					 
					 结算单号: {{item.balancesn}}
					 
				      </div>
				</div>
				<div  class="subtitle">
				    结算佣金：{{item.money}}
				    
				    
				</div>
				<div  class="subtitle">
				    手续费：{{item.balance_pay}}
				    
				    
				</div>
				<div ng-if="item.status==3" class="subtitle">
				    打款时间：{{item.pay_time}}
				</div>
				<div ng-if="item.status==2" class="subtitle">
				    不通过原因：{{item.remark}}
				</div>
			</div>
			<div  ng-if="item.status==3" class="row-remark">
				<p>实际打款:{{item.final_money}}元</p>
				<p>打款方式：{{item.pay_type}}</p>
			</div>
			<div ng-if="item.status!=3" class="row-remark">
				<div ng-if="item.status==0" href="javascript:;" ng-click="access_json('jy_area_dai/balance_shenhe/check/id='+item.id)" class='btn btn-sm btn-default-o'>审核</div>
				<div ng-if="item.status==1" href="javascript:;" ng-click="access_json('jy_area_dai/balance_shenhe/pay/id='+item.id)" class='btn btn-sm btn-default-o'>打款</div>
			</div>
		</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<!--<i class='icon icon-group'></i><br/>暂时没有任何数据-->
			<img src="../core/resource/images/nomeb.png" style="width: 6rem;margin-bottom: .5rem;"><br/><p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>

    </div>
</div>
<script>
scope.tool.get_list('jy_area_dai/balance_shenhe/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_area_dai/balance_shenhe/list/');
}
</script>

